// JavaScript Document

$(document).ready(function(){
	
	$('#ADD_CASE_TOP').click(function(){
		$('#mainFrame',window.parent.document).attr('src','/ag/hmk/CaseAdd.jsp');
	});
	
	
	$.ajax({
  		type: "post",
 		url: "hmk/getWukuType_getWukuType.action",
  		success:function(data){
  			$.each(data.typeList,function(i,n){
  				$("<option value="+n.tpyeId+">"+n.tpyeName+"</option>").appendTo('#caseTypeID');
			});
  		}
	});
	
	$.ajax({
  		type: "post",
 		url: "hmk/getLevel_findAll.action",
  		success:function(data){
  			$.each(data.caseLevelList,function(i,n){
  				$("<option value="+n.levelId+">"+n.levelName+"</option>").appendTo('#caseLevelID');
			});
  		}
	});
	
	
	$('#FIND_CASE_ID').click(function(){
		$('#mainFrame',window.parent.document).attr('src','/ag/hmk/CaseMain.jsp');
	});
	
});